package cn.wolfcode.enums;

import lombok.Getter;

@Getter
public enum ActivityEnums {
    RADIO("单选",0),
    CHECK("多选",1),
    OTHER("其他",2);
    private String name;
    private Integer value;
    ActivityEnums(String name,Integer value){
        this.name = name;
        this.value = value;
    }

    public static String findName(Integer value){
        ActivityEnums[] values = ActivityEnums.values();
        for(ActivityEnums a : values){
            if(a.value.equals(value)){
                return a.name;
            }
        }
        return null;
    }
}
